<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/ajax2.js"></script>
</head>
<body>
    <script>
        /* 
            服务端的URL：  http://www.biwuit.cn/spboot/jsonTest1

            通过Ajax访问出现错误：该资源不允许Ajax访问
        */    

        ajax({
            type:"GET",
            url:"http://www.biwuit.cn/spboot/jsonTest1",
            success:function(data){
                conosle.log(data)
            }
        })
    </script>
</body>
</html>